<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>导出用户信息excel</title>

<style>
input.textbox {
width: 135px;
}
table.altrowstable {
    font-family: verdana,arial,sans-serif;
    font-size:11px;
    color:#333333;
    border-width: 1px;
    border-color: #a9c6c9;
    border-collapse: collapse;
}
table.altrowstable th {
     
    padding: 8px;
     
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #91c9e2;
    background-color:#c4e6f7;
}
table.altrowstable td{
     
    padding: 8px;
    border:none;
}
</style>

</head>
<body>      
   	<div id="south_east_index"  class="index_panel2_3"  >
      <table class="altrowstable" id="alternatecolor"  style="width:700px;" align="center" >
			<tr  align="center">
			    <th>序号</th><th>文件类型</th><th>文件名称</th><th>操作/备注</th><th>操作2</th>
			</tr>
		<c:forEach var="upload" items="${uploadList}" varStatus="star">
			<tr class="evenrowcolor"  align="center">
			    <td>${star.index +1}</td><td>${upload.fileType}</td><td><a href="${pageContext.request.contextPath}${upload.url}" target="_blank">${upload.fileName}</a></td>
			    <td><a href="${pageContext.request.contextPath}${upload.url}" download>下载&nbsp&nbsp-使用download属性下载，仅支持谷歌和火狐浏览器</a></td>
			    <td><a href="javascript:" onclick="downloadData('${upload.url}','${upload.fileName}');">下载</a></td>
			    
			</tr>
		</c:forEach>	
		</table>    	    
	</div> 
<script type="text/javascript">
	function downloadData(fileUrl,fileName){
		window.location.href="${pageContext.request.contextPath}/test/download.jspx?fileUrl="+fileUrl+"&fileName="+fileName;
	}
</script>
		     
</body>
</html>